from django.shortcuts import render
from rest_framework.viewsets import ModelViewSet
from .models import Order, Payment
from .serializer import OrderSerializer, PaymentSerializer


# Create your views here.
class OrderViewSet(ModelViewSet):
    queryset = Order.objects.all()
    serializer_class = OrderSerializer


class PaymentViewSet(ModelViewSet):
    queryset = Payment.objects.all()
    serializer_class = PaymentSerializer




